{% extends "layout.html" %}

{% block content %}
<h2>Preferences</h2>
{% if errors %}
	The following errors occurred:
	<ul>
	{% for e in errors %}
		<li>{{ e }}</li>
	{% endfor %}
	</ul>
{% endif %}
<form action = "" method = "post">
	<p class = "last"><label>Email</label><input name = "email" value = "{{ email }}" />(the one to receive emails, not to log in)</p>
	Email On:<br />
	<p class = "last"><label>Message/Reply</label><input type = "checkbox" {% if email_on_msg %}checked = "checked"{% endif %} name = "email_on_msg" /></p>
	<p class = "last"><label>Game Start</label><input type = "checkbox" {% if email_on_start %}checked = "checked"{% endif %} name = "email_on_start" /></p>
	<p class = "last"><label>&nbsp;</label><input type = "submit" value = "Save" /></p>
</form>
{% endblock %}
